package com.mybook.app.mapper;

import com.mybook.app.core.CommonMapper;
import com.mybook.app.model.BookInfo;
import com.mybook.app.model.NewList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewListMapper extends CommonMapper<NewList> {

    /**
     * 查询新书 ，前3本
     *
     * @return
     */
    List<NewList> findNewBookTop3OrderByCTimeDesc();

    NewList findNewBookById(@Param("id") String id);

}